/*
 * @Author: 东东
 * @Date: 2023-01-16 18:00:17
 * @LastEditors: your Name
 * @LastEditTime: 2023-05-02 21:53:50
 * @Description: 
 */
import "./index.less";
import React, { useEffect, useRef, useState } from 'react';
import { Button, message } from 'antd';

const Text = () => {
	// useEffect(() => {}, [])
	// const [visible, setVisible] = useState('');
	// const refObj = useRef(null)

	// 判断
	const success = (num: any) => {
		num == null ?
			message.open({
				type: 'error',
				content: '后台参数为null!',
			}) :
			// message.open({
			// 	type: 'success',
			// 	content: `参数为${num}`,
			// })
			console.log(1);
	}

	return (
		<div className="text-wrapper"  >

			<Button type="primary" onClick={() => { success(null) }} >
				点击调用
			</Button>


		</div>
	)
}

export default Text;
